import { Login } from "@/api/interface/index";
import { PORT1 } from "@/api/config/servicePort";
import { obj2fd } from "@/utils/index";
import http from "@/api";
// 查询列表
export const getDataByPage = (params: object) => {
  return http.get<Login.ResLogin>(PORT1 + `/secure/sentryOnline`, params, { loading: false }); // 正常 post json 请求  ==>  application/json
};
// 威胁名称列表
export const getThreatenName = () => {
  return http.get<Login.ResLogin>(PORT1 + `/secure/threaName/1`); // 正常 post json 请求  ==>  application/json
};
// 获取线上端口
export const sentry_online_port = params => {
  return http.get<Login.ResLogin>(PORT1 + `/monitor/sentry/sentry_online_port`, params, { noResponse: true }); // 正常 post json 请求  ==>  application/json
};
